package com.xiao.service;

import com.xiao.dao.AppointMapper;
import com.xiao.pojo.Appointment;
import com.xiao.pojo.Borrow;

import java.util.List;

public class AppointServiceImpl implements AppointService{
    private AppointMapper appointMapper;

    public void setAppointMapper(AppointMapper appointMapper) {
        this.appointMapper = appointMapper;
    }

    public int addAppoint(Appointment appointment) {
        return appointMapper.addAppoint(appointment);
    }

    public int deleteAppoint(String aid) {
        return appointMapper.deleteAppoint(aid);
    }

    public List<Appointment> queryAllAppoint() {
        return appointMapper.queryAllAppoint();
    }

    public List<Appointment> queryAllAppointBySno(String sno) {
        return null;
    }

    public Appointment queryAppointByAid(String aid) {
        return null;
    }
}
